void initLevel()
{
  // todo: determine which level the user is on
  int level = 0;
 
  compSystem = new SolarSystem(difficulty);
  compSystem.genSystem();
  print("System Formula : " + compSystem.fullFormula + "\n");
  
  //load the right level outline for difficulty and level
  String outlineFilename = "levels/";
  if(difficulty == 0)
    outlineFilename += "easy";
  if(difficulty == 1)
    outlineFilename += "med";
  if(difficulty == 2)
    outlineFilename += "hard";
  outlineFilename += level;
  outlineFilename += ".png";
  print(outlineFilename);
  levelOutline = loadImage(outlineFilename);
  // todo: load the appropriate leve for the given level and difficulty
  
  globalShapeContainer.initStandardShapes();
  
  // todo: generate solar system
}

void levelSetup()
{
  loadUserLevels();
}

void loadUserLevels()
{
  String lns[] = loadStrings("levels/userLevels.txt");
  
  if (lns == null || lns.length < 3)
  {
    return;
  }
  
  userLevel[0] = int(lns[0]);
  userLevel[1] = int(lns[1]);
  userLevel[2] = int(lns[2]);
}
